$summon item ~ ~ ~ {Item:{id:"arrow",count:$(count)},Tags:[temp]}
$data modify entity @n[type=item,distance=..1,tag=temp] Item.components set from storage dab:system gameContents.arrow[{id:"$(id)"}].cache_components

tag @n[tag=temp,distance=..1,type=item] remove temp